See Also

EnhancedStream Class  | EnhancedStream Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

buffer
The source location of the data to write.
See Also Languages PowerTCP SSL Sockets for .NET

Write(Byte[]) Method

Dart.PowerTCP.SslSockets Namespace > EnhancedStream Class > Write Method : Write(Byte[]) Method

Writes a sequence of bytes to the Stream and returns when the operation is complete.

[Visual Basic]
Overloads Public Sub Write( _    ByVal buffer() As Byte _ )
[C#]
public void Write(    byte[] buffer );
[C++]
public: void Write(    byte[]* buffer )
[C++/CLI]
public: void Write(    bytearray<buffer>^ buffer )

Parameters

buffer
The source location of the data to write.

Exceptions

ExceptionDescription
IOExceptionThrown when the Stream is not writable.
ArgumentNullExceptionThrown when the buffer is null.
ArgumentOutOfRangeExceptionThrown when the offset is less than zero or when count is less than or equal to zero.
ArgumentExceptionThrown when the (offset + count) > buffer.Length.

Remarks

This method is a convenience overload for all derived classes by writing the entire buffer to the Stream. This method calls Write(buffer, 0, buffer.length).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

EnhancedStream Class  | EnhancedStream Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.